Gitlab Accept MR Tool
Accept and merge GitLab merge requests for specified projects with customizable options like commit messages, branch removal, and squash merging.
Instructions
接受并合并指定项目的合并请求,支持自定义合并选项。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fields | No | 需要返回的字段路径数组 | |
mergeOptions | No | 合并选项 | |
mergeRequestId | Yes | 合并请求 ID | |
projectId | Yes | 项目 ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"fields": {
"description": "需要返回的字段路径数组",
"items": {
"type": "string"
},
"type": "array"
},
"mergeOptions": {
"additionalProperties": false,
"description": "合并选项",
"properties": {
"mergeCommitMessage": {
"type": "string"
},
"shouldRemoveSourceBranch": {
"type": "boolean"
},
"squash": {
"type": "boolean"
}
},
"type": "object"
},
"mergeRequestId": {
"description": "合并请求 ID",
"type": "number"
},
"projectId": {
"description": "项目 ID",
"type": "string"
}
},
"required": [
"projectId",
"mergeRequestId"
],
"type": "object"
}